// 封装所有与用户相关的函数
import request from "@/utils/http";
export const loginAPI = ({ account, password }) => {
  return request({
    url: "/login",
    method: "POST",
    data: {
      account,
      password,
    },
  });
};

// 猜你喜欢
export const getLikeListAPI = ({ limit = 4 }) => {
  return request({
    url: "/goods/relevant",
    params: {
      limit,
    },
  });
};

// 获取用户的订单
/*params: {    orderState:0,  page:1,  pageSize:2}*/
export const getUserOrderAPI = (params) => {
  return request({
    url: "/member/order",
    method: "GET",
    params,
  });
};
